//
//  Serializer.h
//  gongwei-ios
//
//  Created by xiaoxiachuanqi on 2020/1/22.
//  Copyright © 2020 gongwei-mac. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "JsonTagType.h"

@interface Serializer: NSObject
+(BOOL) isJsonSerializable: (NSObject *) obj;
+(id) parseData: (NSObject * ) data;
+(id) parseJsonString: (NSString *) jsonStr;
+(NSMutableDictionary *)parseObjectToDictionary: (NSObject*) obj;
+(NSMutableArray *) parseJsonArray: (NSArray *) jsonArray;

+(BOOL) isJavaArray: (NSString *) className;
+(BOOL) isJavaArrayList: (NSString *) className;
+(BOOL) isJavaLongName: (NSString *) className;
+(BOOL) isJavaStringName: (NSString *) className;
+(BOOL) isJavaBooleanName: (NSString *) className;
+(BOOL) isJavaMapName: (NSString *) className;
+(BOOL) isJavaObjectName: (NSString *) className;
+(id) parseObjectToJsonString: (NSObject *) obj;
+(id) parseObjectToData: (NSObject *) obj;
+(id) parseObjectToData:(NSObject *)obj withJsonTagType: (JsonTagType) jsonTagType;
+(id) parseArrayToData: (NSArray *) arr withJsonTagType: (JsonTagType) jsonTagType;
+(id) parseDictionaryToData: (NSDictionary *) dictionary withJsonTagType: (JsonTagType) jsonTagType;
@end
